package com.xique.door.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.door.api.factory.RemoteXylAlarmFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: caogq
 * @Date: 2021/12/28 15:26
 * @Description: 西洋楼接口
 */
@FeignClient(contextId = "RemoteXylAlarmService", value = ServiceNameConstants.DOOR_BIZ_SERVICE, fallbackFactory = RemoteXylAlarmFallbackFactory.class)
public interface RemoteXylAlarmService {
    /**
     * @description: 告警统计
     * @author caogq
     * @date 2021/12/28 16:07
     */

    @GetMapping("/xyl/record/alarm")
    public AjaxResult alarmStatistics();
}
